CodeForces - 981 G Magic multisets (선분 트 리 + set 유지보수 구간 정보)
For example, if you try to add the integer 22 to the multiset {1,2,3,3}{1,2,3,3}, you will get {1,1,2,2,3,3,3,3}{1,1,2,2,3,3,3,3}.
For example, if you try to add the integer 44 to the multiset {1,2,3,3}{1,2,3,3}, you wil...
-- ACM 관련 -- --- 데이터 구조 -ACM-선분 수